package com.qi.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("sys_activity")
public class Activity {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    private Long masterId;
    @TableField(exist = false)
    private String masterName;
    private Long clubId;
    @TableField(exist = false)
    private String clubName;
    private String phone;
    private String address;
    private String introduction;
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date holdTime;
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date expireTime;
}
